Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Qt scrollbar grippers 1.1: Fix control detection #1140

Merged
merged 4 commits into from
Oct 25, 2024

Conversation

kawapure
Copy link
Contributor

Previously, we attempted to draw the gripper overlay for any control that existed, not just scrollbars. This is because the control theme opened by the HTHEME was not checked. Now, we only try drawing scrollbar grippers if we know the control itself is a scrollbar.

Previously, we attempted to draw the gripper overlay for any control that existed, not just scrollbars. This is because the control theme opened by the HTHEME was not checked. Now, we only try drawing scrollbar grippers if we know the control itself is a scrollbar.

Signed-off-by: Isabella <kawapure@gmail.com>
Signed-off-by: Isabella <kawapure@gmail.com>
Signed-off-by: Isabella <kawapure@gmail.com>
@ALTaleX531
Copy link

// uxtheme!GetThemeClass exported entry 74
HRESULT STDMETHODCALLTYPE GetThemeClass(HTHEME hTheme, LPCWSTR pszClassIdList, int cchClass);

You can actually use GetThemeClass to get the class name of HTHEME without the need to hook additional functions.

@kawapure
Copy link
Contributor Author

// uxtheme!GetThemeClass exported entry 74
HRESULT STDMETHODCALLTYPE GetThemeClass(HTHEME hTheme, LPCWSTR pszClassIdList, int cchClass);

You can actually use GetThemeClass to get the class name of HTHEME without the need to hook additional functions.

Thank you for the information. This is very useful. I tried to find similar functionality but I failed to find such a function looking in IDA myself.

Detection of the theme class has been moved to use the undocumented GetThemeClass export from UXTheme rather than hooking OpenThemeData and CloseThemeData and keeping track of theme handles manually.

Signed-off-by: Isabella <kawapure@gmail.com>
@m417z m417z merged commit 32c17fb into ramensoftware:main Oct 25, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants